<template>
  <el-button @click="show">点击测试</el-button>
</template>

<script>
import { ElMessage } from 'element-plus'
export default {
    name:'Goods',
    setup(){
      function show(){
        ElMessage.error("msg测试")
      }

      return {
        show
      }
    }
}
</script>

<style>

</style>